package com.qyl.deguru.controller.customer;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import com.qyl.deguru.dto.Shop;
import com.qyl.deguru.service.ShopService;
import com.qyl.deguru.service.impl.ShopServiceImple;

/**
 * 订单支付
 * */
@Controller
@RequestMapping("/customer/pay")
public class PayController {
	ShopService shopService = new ShopServiceImple();
	@RequestMapping("/topay")
	public String topay(int pid,ModelMap modelMap){
		Shop pshop = shopService.getShopById(pid);
		modelMap.addAttribute("pshop", pshop);
		return "pay";
	}
}
